package creational.factoryMethod;

import creational.factoryMethod.sharp.SharpController;

import java.util.Map;

public class ProductsController extends SharpController {
  public void showProducts() {
    // Simulate fetching products from a database
    String[] products = {"Product 1", "Product 2", "Product 3"};

    // Prepare the context for the view
    Map<String, Object> context = Map.of("products", products);

    // Render the view with the context
    renderView("products", context);
  }
}
